﻿/**
作者：
 */
package com.zito.bean;

import javax.validation.groups.Default;


import com.downlove.validation.match.CheckMatch;
import com.downlove.validation.notnull.NotNull;
import com.downlove.validation.strlength.CheckLength;
import com.zito.pojo.WeblinkPOJO;

public class Weblink extends WeblinkPOJO {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5794839399836680246L;
	private Long id;
	@NotNull(message = "请填写链接名称", groups = { Default.class })
	@CheckLength(message = "链接名称字符长度不能小于2个字符，不能大于20个字符，一个中文为2个字符", min = 4, max = 40, groups = { Default.class })
	private String name;
	private int islogo;
	private String logo;
	@NotNull(message = "请填写链接地址", groups = { Default.class })
	@CheckMatch(key="validation.isURL",message = "链接地址格式错误", groups = { Default.class })
	private String url;
	private int orders;
	private String types;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setIslogo(int islogo) {
		this.islogo = islogo;
	}

	public int getIslogo() {
		return islogo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getLogo() {
		return logo;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getUrl() {
		return url;
	}

	public void setOrders(int orders) {
		this.orders = orders;
	}

	public int getOrders() {
		return orders;
	}

	public void setTypes(String types) {
		this.types = types;
	}

	public String getTypes() {
		return types;
	}

}
